/**
 * Test algorithms for JettHoughts
 * 
 * Created 12/02/2012
 * 
 * @author Vasili Svirski
 * @version 0.01
 */


package com.jetthoughts.tests;

import static org.junit.Assert.*;

import org.junit.Test;

import com.jetthoughts.algorithms.FileByMask;

public class FileByMaskTest {

	@Test
	public void testFindWord() {
		assertTrue(FileByMask.getFileByMask(".","eretik", "wert").equalsIgnoreCase("eretik112.txt"));
	}

	@Test
	public void testDeepFindWord() {
		assertTrue(FileByMask.getFileByMask(".","eretik113", "wert").equalsIgnoreCase("eretik113.txt"));
	}

	@Test
	public void testNotFindWord() {
		assertNull(FileByMask.getFileByMask(".","eretik", "100"));
	}

	@Test
	public void testDeepNotFindWord() {
		assertNull(FileByMask.getFileByMask(".","eretik113", "100"));
	}


	@Test
	public void testNotFindFile() {
		assertNull(FileByMask.getFileByMask(".","e i", ""));
	}

}
